﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

/// <summary>
/// 用户MVC控制器
/// </summary>
namespace OAProject.Web.Controllers
{
    public class UsersWebController : Controller
    {
        /// <summary>
        /// 登录页面
        /// </summary>
        /// <returns></returns>
        public IActionResult Index()
        {
            return View();
        }

        /// <summary>
        /// 用户显示页面
        /// </summary>
        /// <returns></returns>
        public IActionResult Show()
        {
            return View();
        }

        /// <summary>
        /// 用户添加页面
        /// </summary>
        /// <returns></returns>
        public IActionResult Create()
        {
            return View();
        }

        /// <summary>
        /// 用户表的反填修改页面
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public IActionResult Fill(int id)
        {
            ViewBag.ids = id;
            return View();
        }

        /// <summary>
        /// 忘记密码
        /// </summary>
        /// <returns></returns>
        public IActionResult ForgetPwd()
        {
            return View();
        }

        /// <summary>
        /// 查看角色分配权限
        /// </summary>
        /// <returns></returns>
        public IActionResult ShuShow(int userId)
        {
            ViewBag.id = userId;
            return View();
        }
        public IActionResult CtrlShow()
        {
            return View();
        }
    }
}
